import front.CitationFront;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

/**
 * @author ：hzs
 * @date ：Created in 2020/12/11 18:43
 * @description：
 * @modified By：
 * @version: $
 */
public class Starter {

    private static final String className = CitationFront.class.getName();
//    private static final String methodName = "getMissingPaperEntity";
    private static final String methodName = "generateKnowledgeFlow";
    private static final Class[] parameterTypes = new Class[]{};
    private static final Object[] arguments = new Object[]{};

    public static void main(String[] args) {
        try {
            Class<?> citationFront = Class.forName(className);
            Method method = citationFront.getMethod(methodName, parameterTypes);
            Object invoke = method.invoke(citationFront.newInstance(), arguments);
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } catch (NoSuchMethodException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (InvocationTargetException e) {
            e.printStackTrace();
        } catch (InstantiationException e) {
            e.printStackTrace();
        }
    }

}
